package d13_extends_override01;
//注意封装的规范
public class Student {
    private String name;
    private char sex;
    private double height;
    private String describe;

    public Student() {
    }

    public Student(String name, char sex, double height, String describe) {
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.describe = describe;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    //重写toString
    @Override//重写检验注解 校验 可辨度高 优雅
    public String toString(){
        return "Student {name=" + name +",sex=" +sex
                +",height=" + height + ",desc=" + describe;
    }
}
